﻿using BCCommon;
using BCDto.OA.Notification.NotificationCategory;
using System;
using System.Collections.Generic;

namespace BCService.OA.Notification.NotificationCategory
{
    /// <summary>
    /// 通知分类
    /// </summary>
	public interface INotificationCategoryService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        bool Exists(long notificationCategoryId);
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="notificationCategoryName">通知分类名称</param>
        bool Exists(string notificationCategoryName);
        /// <summary>
        /// 添加通知分类
        /// </summary>
        /// <param name="requestDto">通知分类信息</param>
        NotificationCategoryDto Add(NotificationCategoryRequestDto requestDto);
        /// <summary>
        /// 更新通知分类
        /// </summary>
        /// <param name="putDto">通知分类信息</param>
        NotificationCategoryDto Update(NotificationCategoryPutDto putDto);
        /// <summary>
        /// 删除通知分类
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        bool Delete(long notificationCategoryId);
        /// <summary>
        /// 获取通知分类
        /// </summary>
        /// <param name="notificationCategoryId">通知分类Id</param>
        NotificationCategoryDto GetEntity(long notificationCategoryId);
        /// <summary>
        /// 获取通知分类列表
        /// </summary>
        IEnumerable<NotificationCategoryDto> GetList();
        /// <summary>
        /// 获取通知分类分页列表
        /// </summary>
        /// <param name="notificationCategoryName">通知分类名称</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">通知分类每页数据条数</param>
        PageableList<NotificationCategoryDto> Query(string notificationCategoryName, DateTime? start, DateTime? end, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}
